package com.web.kdl.service.auth;

import com.web.kdl.common.result.CommonResult;
import com.web.kdl.entity.auth.PermissionInfo;
import com.web.kdl.pojo.Vo.auth.PermissionVo;
import com.web.kdl.pojo.form.PermissionAddForm;
import com.web.kdl.pojo.form.PermissionUpdateForm;

import java.util.List;

/**
 * @Author： shulibin
 * @Date： 2025/7/30 13:48
 * @Describe：
 */
public interface PermissionService {
    List<PermissionInfo> getAllPermissions();

    PermissionInfo getById(String id);

    CommonResult createPermission(PermissionAddForm form);

    CommonResult updateById(String id, PermissionUpdateForm form);

    CommonResult removeById(String id);

    PermissionInfo getByCode(String permissionCode);

    List<PermissionInfo> getUserPermissions(String userId);

    CommonResult removeBatchByIds(List<String> ids);
}
